﻿<Application 
    x:Class="WaitLess.App.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:converters="clr-namespace:WaitLess.App.Converters">

    <!--Application Resources-->
    <Application.Resources>
        <shell:ApplicationBar x:Key="GlobalAppBar" IsVisible="True" IsMenuEnabled="True" Mode="Minimized">
            <shell:ApplicationBar.Buttons>
                <shell:ApplicationBarIconButton IconUri="/Assets/ApplicationBar.Home.png" Text="Home" Click="IconButtonHome_Click" />
            </shell:ApplicationBar.Buttons>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="About" Click="MenuItemAbout_Click" />
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>

        <converters:BooleanToVisibilityConverter x:Key="booleanToVisibilityConverter" />
        <converters:IsDataLoadedToVisibilityConverter x:Key="isDataLoadedToVisibilityConverter" />
        
        <converters:MunicipalOfficeToImageConverter x:Key="municipalOfficeToImageConverter" />
        <converters:MunicipalOfficeNameToTitleConverter x:Key="municipalOfficeNameToTitleConverter" />
    </Application.Resources>

    <Application.ApplicationLifetimeObjects>
        <!--Required object that handles lifetime events for the application-->
        <shell:PhoneApplicationService 
            Launching="Application_Launching" Closing="Application_Closing" 
            Activated="Application_Activated" Deactivated="Application_Deactivated"/>
    </Application.ApplicationLifetimeObjects>

</Application>
